using System;

namespace Camalon.Drawing.Samples.CSharp
{
	/// <summary>
	/// Summary description for OutlineText.
	/// </summary>
	public class OutlineLine:Camalon.Drawing.ShapeContainer
	{
		private Camalon.Drawing.Outline outline;
		private Camalon.Drawing.ShapePen linePen;
		private Camalon.Drawing.Shapes.Curve curve1;
        private Camalon.Drawing.Shade lineShade;
		private Camalon.Drawing.LinearGradientFill lineFill;

		private void InitializeComponent()
		{
            this.outline = new Camalon.Drawing.Outline();
            this.linePen = new Camalon.Drawing.ShapePen();
            this.curve1 = new Camalon.Drawing.Shapes.Curve();
            this.lineFill = new Camalon.Drawing.LinearGradientFill();
            this.lineShade = new Camalon.Drawing.Shade();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // outline
            // 
            this.outline.EndCap = new Camalon.Drawing.LineCapStyle(Camalon.Drawing.CapStyle.Arrow, Camalon.Drawing.CapSize.Small, Camalon.Drawing.CapAlign.Center, 0F, true, 0.7F);
            this.outline.LineJoin = System.Drawing.Drawing2D.LineJoin.Round;
            this.outline.StartCap = new Camalon.Drawing.LineCapStyle(Camalon.Drawing.CapStyle.ArrowRTL, Camalon.Drawing.CapSize.SmallSmall);
            this.outline.Width = 30F;
            // 
            // linePen
            // 
            this.linePen.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.SandyBrown);
            this.linePen.ForegroundPen = false;
            this.linePen.LineJoin = System.Drawing.Drawing2D.LineJoin.Round;
            this.linePen.MiterLimit = 0F;
            this.linePen.Width = 2F;
            // 
            // curve1
            // 
            this.curve1.Fill = this.lineFill;
            this.curve1.FillMode = System.Drawing.Drawing2D.FillMode.Winding;
            this.curve1.Outline = this.outline;
            this.curve1.Pen = this.linePen;
            this.curve1.Points = new Camalon.Drawing.AnchorPoint[] {
        new Camalon.Drawing.AnchorPoint(150, 80),
        new Camalon.Drawing.AnchorPoint(220, 430),
        new Camalon.Drawing.AnchorPoint(620, 350)};
            this.curve1.Position = new System.Drawing.Point(150, 80);
            this.curve1.Shade = this.lineShade;
            this.curve1.Size = new System.Drawing.Size(470, 350);
            // 
            // lineFill
            // 
            this.lineFill.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.OrangeRed),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Bisque, 0.5F),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.OrangeRed, 1F)};
            // 
            // lineShade
            // 
            this.lineShade.Pen = this.linePen;
            this.lineShade.Repeat = 10;
            // 
            // OutlineLine
            // 
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.curve1});
            this.Size = new System.Drawing.Size(800, 570);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
	
		public OutlineLine()
		{
			//
			// TODO: Add constructor logic here
			//
		}
	}
}
